package com.xxxy.ljh.myapplication.model;

public class User {
    private int userId;
    private String username;
    private String password;
    private String realName;
    private int role;
    private String phone;
    private String email;
    private String studentId;
    private String department;
    private String avatar;
    private int status;

    // 默认构造函数
    public User() {
    }

    // 带参数的构造函数
    public User(String username, String password, String realName, String phone,
                String email, String studentId, String department) {
        this.username = username;
        this.password = password;
        this.realName = realName;
        this.phone = phone;
        this.email = email;
        this.studentId = studentId;
        this.department = department;
        this.role = 0; // 默认角色为普通用户
    }

    // Getters and Setters
    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getStatus() {

        return status;
    }
    public void setStatus(int status) {
        this.status = status;
    }
}
